package com.ucar.train.service.impl;

import com.ucar.train.dao.OrderDetailMapper;
import com.ucar.train.dto.OrderDetailDTO;
import com.ucar.train.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: OrderDetailServiceImpl
 * @Description TODO
 * @Author: Mingzhi.Xu
 * @Create: 2019-08-14 13:13
 **/
@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    private OrderDetailMapper orderDetailMapper;

    /**
     * 功能描述: <br>
     * 〈〉
     *
     * @Param: [orderNo]
     * @Return: com.ucar.train.dto.OrderDetailDTO
     * @Author: XuMingZhi
     * @Date: 2019/8/16 14:23
     */
    @Override
    public OrderDetailDTO selectByOrderNo(String orderNo) {
        return orderDetailMapper.selectByOrderNo(orderNo);
    }

    /**
     * 功能描述: <br>
     * 〈〉
     *
     * @Param: [record]
     * @Return: int
     * @Author: XuMingZhi
     * @Date: 2019/8/16 14:23
     */
    @Override
    public int updateByPrimaryKeySelective(OrderDetailDTO record) {
        orderDetailMapper.updateByPrimaryKeySelective(record);
        return 0;
        }

    @Override
    public List<OrderDetailDTO> selectByGetStoreCode(String getStoreCode) {
        return orderDetailMapper.selectByGetStoreCode(getStoreCode);
    }

    @Override
    public List<OrderDetailDTO> selectCarCommentByCarId(String carId){
        return   orderDetailMapper.selectCarCommentByCarId(carId);
    }

}

